<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Suggest;

class SuggestController extends Controller
{
    public function index()
    {
    	$where = [];
    	$list = Suggest::where($where)->paginate(10);
    	return view('admin.suggest.index',compact('list'));
    }

    public function destroy($id)
    {
    	Suggest::destroy($id);
    	return back();
    }
}
